_rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt is the main daily accounting shell procedure. It is normally
initiated via _cccc_rrrr_oooo_nnnn. _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt processes connect, fee, disk, and process
accounting files. It also prepares summary files for _pppp_rrrr_dddd_aaaa_iiii_llll_yyyy or billing
purposes.
_rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt takes care not to damage active accounting files or summary files
in the event of errors. It records its progress by writing descriptive
diagnostic messages into _a_c_t_i_v_e. When an error is detected, a message is
written to _////_dddd_eeee_vvvv_////_cccc_oooo_nnnn_ssss_oooo_llll_eeee, mail (see _mmmm_aaaa_iiii_llll(1)) is sent to _rrrr_oooo_oooo_tttt and _aaaa_dddd_mmmm, and
_rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt terminates. _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt uses a series of lock files to protect
against re-invocation. The files _llll_oooo_cccc_kkkk and _llll_oooo_cccc_kkkk_1111 are used to prevent
simultaneous invocation, and _llll_aaaa_ssss_tttt_dddd_aaaa_tttt_eeee is used to prevent more than one
invocation per day.
_rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt breaks its processing into separate, restartable _s_t_a_t_e_s using
_s_t_a_t_e_f_i_l_e to remember the last _s_t_a_t_e completed. It accomplishes this by
writing the _s_t_a_t_e name into _s_t_a_t_e_f_i_l_e. _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt then looks in _s_t_a_t_e_f_i_l_e
to see what it has done and to determine what to process next. _s_t_a_t_e_s
are executed in the following order:
_SSSS_EEEE_TTTT_UUUU_PPPP Move active accounting files into working files.
_WWWW_TTTT_MMMM_PPPP_FFFF_IIII_XXXX Verify integrity of _wwww_tttt_mmmm_pppp file, correcting date changes if
necessary.
_CCCC_OOOO_NNNN_NNNN_EEEE_CCCC_TTTT Produce connect session records in _tttt_aaaa_cccc_cccc_tttt_...._hhhh format.
_PPPP_RRRR_OOOO_CCCC_EEEE_SSSS_SSSS Convert process accounting records into _tttt_aaaa_cccc_cccc_tttt_...._hhhh format.
_MMMM_EEEE_RRRR_GGGG_EEEE Merge the connect and process accounting records.
_FFFF_EEEE_EEEE_SSSS Convert output of _cccc_hhhh_aaaa_rrrr_gggg_eeee_ffff_eeee_eeee into _tttt_aaaa_cccc_cccc_tttt_...._hhhh format and merge
with connect and process accounting records.
_DDDD_IIII_SSSS_KKKK Merge disk accounting records with connect, process, and fee
accounting records.
_MMMM_EEEE_RRRR_GGGG_EEEE_TTTT_AAAA_CCCC_CCCC_TTTT Merge the daily total accounting records in _dddd_aaaa_yyyy_tttt_aaaa_cccc_cccc_tttt with
_UUUU_SSSS_EEEE_RRRR_EEEE_XXXX_IIII_TTTT Any installation dependent accounting programs can be
included here.
_CCCC_LLLL_EEEE_AAAA_NNNN_UUUU_PPPP Clean up temporary files and exit.
To restart _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt after a failure, first check the _a_c_t_i_v_e and _f_d_2_l_o_g
files for diagnostics, then fix any corrupted data files, such as _pppp_aaaa_cccc_cccc_tttt
or _wwww_tttt_mmmm_pppp. The _llll_oooo_cccc_kkkk, _llll_oooo_cccc_kkkk_1111, and _llll_aaaa_ssss_tttt_dddd_aaaa_tttt_eeee files must be removed before
_rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt can be restarted. The argument _m_m_d_d is necessary if _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt is
being restarted, and specifies the month and day for which _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt reruns
the accounting. The entry point for processing is based on the contents
of _s_t_a_t_e_f_i_l_e; to override this, include the desired _s_t_a_t_e on the command
line to designate where processing should begin.
The report generation commands check the environment in order to allocate
enough memory to handle system with large configuration. The environment
variables can be set in the appropriate _c_r_o_n_t_a_b files where _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt is
If _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt failed in the _PPPP_RRRR_OOOO_CCCC_EEEE_SSSS_SSSS _s_t_a_t_e, remove the last _pppp_tttt_aaaa_cccc_cccc_tttt file
because it is not complete.
Each time _rrrr_uuuu_nnnn_aaaa_cccc_cccc_tttt is run, it resets the _////_vvvv_aaaa_rrrr_////_aaaa_dddd_mmmm_////_wwww_tttt_mmmm_pppp file. This make
programs like _llll_aaaa_ssss_tttt(1) less useful.